import Layout from '@/layout'

const codeGenerator = {
  path: '/codeGenerator',
  component: Layout,
  redirect: '/generation-code/index',
  meta: { title: 'CodeGenerator', icon: 'chart' },
  children: [
    {
      path: 'index',
      name: 'ElementPlusIndex',
      component: () => import('@/views/element-plus/index'),
      meta: { title: '表格查询生成' }
    },
    {
      path: 'add-edit',
      name: 'ElementPlusAddEdit',
      component: () => import('@/views/element-plus/add-edit'),
      meta: { title: '新增编辑生成' }
    },
    {
      path: 'detail',
      name: 'ElementPlusDetail',
      component: () => import('@/views/element-plus/detail'),
      meta: { title: '详情页生成' }
    }
  ]
}

export default codeGenerator
